

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">首页</strong> / <small>资讯管理</small></div>
    </div>
    
    <div class="am-padding">
      <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="{:U('newsAdd')}">新增资讯</a>
    </div>

    <div class="am-g">
      <div class="am-u-sm-12">
        <table class="am-table am-table-bd am-table-striped admin-content-table">
          <thead>
            <tr>
              <th>ID</th>
              <th>标题图</th>
              <th>资讯名称</th>
              <th style="min-width: 150px;">资讯类别</th>
              <th>资讯简介</th>
              <th style="min-width: 240px;">操作</th>
            </tr>
          </thead>
          <tbody>
            <foreach name="list" item="o">
                <tr>
                  <td>{$o.id}</td>
                  <td><a href="{$o.pic}"><img style="width: 120px;" src="{$o.pic}"></a></td>
                  <td>{$o.title}</td>
                  <td>{$o.typename}</td>
                  <td>{$o.discrition}</td>
                  <td>
                    <a target="_blank" href="{:U('Home/index/journalDetial', 'id='.$o['id'])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">查看</a>
                    <a href="{:U('newsUpdate', 'id='.$o['id'])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">修改</a>
                    <a onclick="if(!window.confirm('确定要删除吗?')) { return false;}" href="{:U('newsDelete', 'id='.$o['id'])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">删除</a>
                  </td>
                </tr>
            </foreach>
          </tbody>
        </table>
      </div>
    </div>
  